// bitstream.h: example utility functions for streaming bits to a data decompressor.
// Written 5/30/14 by David Krauss. No rights reserved.

#ifndef SSTAR_LIGHTPRESS_EXAMPLE_BITSTREAM_H
#define SSTAR_LIGHTPRESS_EXAMPLE_BITSTREAM_H

struct hpack_huffman_bit_source {
	uint8_t const * pen;
	uint8_t const * end; // Must point at a valid byte address per C addressing rules, although no access will occur.
	
	uint8_t bit_buf; // Fetched but unreturned bits, MSB-aligned.
	uint8_t bit_buf_size; // range 0..7
};

#endif
